package com.linx.system.domain.bo;

import com.linx.common.core.validate.AddGroup;
import com.linx.common.core.validate.EditGroup;
import com.linx.system.domain.SysUserAccessControl;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

/**
 * 人员-门禁关联业务对象 user_access_control
 *
 * @author linx
 * @date 2024-10-26
 */
@Data
@AutoMapper(target = SysUserAccessControl.class, reverseConvertGenerate = false)
public class SysUserAccessControlBo {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long userAccessControlId;

    /**
     * 备注
     */
    private String remark;

    /**
     * 人员id
     */
    @NotNull(message = "人员id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 门禁id
     */
    private Long accessControlId;

    /**
     * 选中的门禁设备
     */
    private List<Long> accessControlIds;


}
